<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<meta name="GENERATOR" content="PasDoc 0.11.0">
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>Crispy Plotter Documentation: Parser</title>
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
</head>
<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#FF0000">
<h1 class="unit">Unit Parser</h1>
<table class="sections wide_list">
<tr>
<td><a class="section"  href="#%40Description">Description</a></td><td>uses</td><td><a class="section"  href="#%40Classes">Classes, Interfaces, Objects and Records</a></td><td><a class="section"  href="#%40FuncsProcs">Functions and Procedures</a></td><td><a class="section"  href="#%40Types">Types</a></td><td>Constants</td><td><a class="section"  href="#%40Variables">Variables</a></td></tr></table>
<a name="%40Description"></a><h2 class="description">Description</h2>
<p>
Implements a class for parsing mathematical expressions.</p>
<a name="%40Uses"></a><h2 class="overview">Overview</h2>
<a name="%40Classes"></a><h3 class="cio">Classes, Interfaces, Objects and Records</h3>
<table class="classestable wide_list">
<tr class="listheader">
<th class="itemname">Name</th>
<th class="itemdesc">Description</th>
</tr>
<tr class="list">
<td class="itemname">Class&nbsp;<a class="bold"  href="Parser.TParser.html"><code>TParser</code></a></td>
<td class="itemdesc">TParser is a container for a <a class="normal"  href="VarList.TVarList.html">TVarList</a>, <a class="normal"  href="FuncList.TFuncList.html">TFuncList</a> and <a class="normal"  href="InstructionList.TInstructionList.html">TInstructionList</a> instance and can pass an expression string to its instruction list for evaluation.</td>
</tr>
</table>
<a name="%40FuncsProcs"></a><h3 class="summary">Functions and Procedures</h3>
<table class="summary wide_list">
<tr class="list">
<td class="itemcode"><code>function <b><a   href="Parser.html#Evaluate">Evaluate</a></b>(Expression: string): <a   href="ResConst.html#TFloat">TFloat</a>;</code></td>
</tr>
</table>
<a name="%40Types"></a><h3 class="summary">Types</h3>
<table class="summary wide_list">
<tr class="list">
<td class="itemcode"><code><b><a   href="Parser.html#TSyntaxErrorEvent">TSyntaxErrorEvent</a></b> = procedure (Sender:<a   href="Parser.TParser.html">TParser</a>; Error:<a   href="ParseConst.html#TSyntaxError">TSyntaxError</a>; EStart,EEnd:Integer) of object;</code></td>
</tr>
<tr class="list2">
<td class="itemcode"><code><b><a   href="Parser.html#TSendMessageEvent">TSendMessageEvent</a></b> = procedure(Sender:<a   href="Parser.TParser.html">TParser</a>; Msg:String; MsgType: <a   href="ParseConst.html#TMsgType">TMsgType</a>) of object;</code></td>
</tr>
</table>
<a name="%40Variables"></a><h3 class="summary">Variables</h3>
<table class="summary wide_list">
<tr class="list">
<td class="itemcode"><code><b><a   href="Parser.html#Old8087W">Old8087W</a></b>: Word;</code></td>
</tr>
</table>
<h2 class="description">Description</h2>
<h3 class="detail">Functions and Procedures</h3>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><a name="Evaluate"></a><code>function <b>Evaluate</b>(Expression: string): <a   href="ResConst.html#TFloat">TFloat</a>;</code></td>
</tr>
<tr><td colspan="1">
<p>
Function for evaluating expressions. If Expression is not a valid equation, the function throws an ESyntaxError exception. </p>
<h6 class="description_section">See also</h6>
<dl class="see_also">
  <dt><a class="normal"  href="ParseUtils.ESyntaxError.html">ParseUtils.ESyntaxError</a></dt>
  <dd>ESyntaxError is raised by <a class="normal"  href="Parser.TParser.html">Parser.TParser</a>, when the user enters an invalid expression</dd>
</dl>
</td></tr>
</table>
<h3 class="detail">Types</h3>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><a name="TSyntaxErrorEvent"></a><code><b>TSyntaxErrorEvent</b> = procedure (Sender:<a   href="Parser.TParser.html">TParser</a>; Error:<a   href="ParseConst.html#TSyntaxError">TSyntaxError</a>; EStart,EEnd:Integer) of object;</code></td>
</tr>
<tr><td colspan="1">
&nbsp;</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><a name="TSendMessageEvent"></a><code><b>TSendMessageEvent</b> = procedure(Sender:<a   href="Parser.TParser.html">TParser</a>; Msg:String; MsgType: <a   href="ParseConst.html#TMsgType">TMsgType</a>) of object;</code></td>
</tr>
<tr><td colspan="1">
&nbsp;</td></tr>
</table>
<h3 class="detail">Variables</h3>
<table class="detail wide_list">
<tr class="list">
<td class="itemcode"><a name="Old8087W"></a><code><b>Old8087W</b>: Word;</code></td>
</tr>
<tr><td colspan="1">
&nbsp;</td></tr>
</table>
<hr noshade size="1"><span class="appinfo"><em>Generated by <a  target="_parent" href="http://pasdoc.sourceforge.net/">PasDoc 0.11.0</a> on 2009-07-25 15:33:04</em>
</span>
</body></html>
